Summary

A networkable list for use with the SyncAttribute and HostSyncAttribute. Only changes will be networked instead of sending the whole list every time, so it's more efficient. ['br']

['b']

public class MyComponent : Component
{
	[Sync] public NetList<int> MyIntegerList { get; set; } = new();
	['br']
	public void AddNumber( int number )
	{
		if ( IsProxy ) return;
		MyIntegerList.Add( number );
	}
}

Constructors

NetList<T>

Properties

Count <inheritdoc cref="P:System.Collections.Generic.List`1.Count" />
Item

Methods

Add
Clear <inheritdoc cref="M:System.Collections.Generic.List`1.Clear" />
Contains
CopyTo
Dispose
GetEnumerator <inheritdoc cref="M:System.Collections.Generic.List`1.GetEnumerator" />
IndexOf
Insert
Remove
RemoveAt <inheritdoc cref="M:System.Collections.Generic.List`1.RemoveAt(System.Int32)" />
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.